{% extends 'evaluate/admin/adminBase.html' %}
{%block right_views%}
<div class="">
            <div class="page-title">
              <div class="title_left">
                <h3>系统设置</h3>
              </div>

              <div class="title_right">
                <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
                 
                </div>
              </div>
            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>启动学期评价</h2>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                  {% if year.state == 'active' %}
                    <form class="form-horizontal form-label-left" action="{% url 'c_admin_pwd' %}"  method="post" novalidate>
                      <span class="section"></span>
                      <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                         <p>系统开放中</p>
                         <label class="control-label " >当前学年:<span>{{year.year_term}}</span>
                        </label>
                        </div>
                      </div>    
                      <div class="ln_solid"></div>
                      <div class="">
                        <div class="col-md-6 col-md-offset-3">
                          <a href="{% url 'close_evaluate' %}"  class="btn btn-success">结束</a>
                        </div>
                      </div>
                    </form>
                    {% elif year.state == 'close' %}
                    <form class="form-horizontal form-label-left" action="{% url 'c_admin_pwd' %}"  method="post" novalidate>
                      <span class="section"></span>
                      <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                         <p>系统已完成当学期评价采集</p>
                         <label class="control-label " >当前学年:<span>{{year.year_term}}</span>
                        </label>
                        </div>
                      </div>    
                      <div class="ln_solid"></div>
                      <div class="">
                        <div class="col-md-6 col-md-offset-3">
                          <p>运行分析数据后才可开启下一学期的功能！</p>
                        </div>
                      </div>
                    </form>
                    {% else %}
                    <form class="form-horizontal form-label-left" action="{% url 'c_admin_pwd' %}"  method="post" novalidate>
                      <span class="section"></span>
                      <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                         <p>系统未开放</p>
                         <label class="control-label " >当前学年:<span>{{year.year_term}}</span>
                        </label>
                        </div>
                      </div>    
                      <div class="ln_solid"></div>
                      <div class="">
                        <div class="col-md-6 col-md-offset-3">
                          <a  href="{% url 'opend_evaluate' %}"  class="btn btn-primary">开启</a>
                        </div>
                      </div>
                    </form>
                    {% endif %}
                  </div>
                </div>
              </div>
            </div>
          </div>
{%endblock%}